<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
    <head>
        <%@include file="../common/head.jspf" %>
        <link href="/css/user/confirmorder.css" rel="stylesheet"/>
    </head>
    <body>
        <header class="site-mast" >
            <%@include file="../common/head_top_short.jspf" %>
        </header>
        <div class="redline"></div>
       <div class="choose_add_list">
       <div class="choose_add_title">选择收货地址</div>
       
       <c:forEach var="item" items="${udlist}" varStatus="status">
           <div class="choose_address_info cursor <c:if test="${item.isDefault == 1}">default_address</c:if>">
               <c:if test="${item.isDefault == 0}">
                   <img src="/img/user/right_top_no.png" class="righttop" />
                   <img src="/img/user/red_san_no.png" class="redsan" />
               </c:if>
               <c:if test="${item.isDefault == 1}">
                   <img src="/img/user/right_top.png" class="righttop" />
                   <img src="/img/user/red_san.png" class="redsan" />
               </c:if>
           <img src="/img/user/duigou.png" class="duigou" <c:if test="${item.isDefault == 0}">style="display:none;"</c:if>/>
           <span class="check_addname add_name<c:if test="${item.isDefault == 0}">_other</c:if>">${item.pname} ${item.name}</span>
               <hr>
               <span class="add_info">${item.address}</span>
               <br>
               <span class="add_tel">${item.mobile}</span>
               <br>
               <input type="hidden" value="${item.id}" class="hiddenAddressId"/>
               <input type="hidden" value="${item.name}" class="hiddenName"/>
               <input type="hidden" value="${item.mobile}" class="hiddenMobile"/>
               <label class="add_change" <c:if test="${item.isDefault == 0}">style="display:none;"</c:if>>修改</label>
           </div>
       </c:forEach>
       
           <div class="choose_address_info cursor">
           <img src="/img/user/right_top_no.png" class="righttop" />
           <img src="/img/user/red_san_no.png" class="redsan" />
           <img src="/img/user/duigou.png" class="duigou" style="display:none;"/>
               <span class="check_addname add_name_other">北京 小魔仙</span>
               <hr>
               <span class="add_info">北京市丰台区诺德中心7号楼605</span>
               <br>
               <span class="add_tel">13685415389</span>
               <br>
               <label class="add_change" style="display:none;">修改</label>
           </div>
           <div class="choose_address_info cursor">
           <img src="/img/user/right_top_no.png" class="righttop" />
           <img src="/img/user/red_san_no.png" class="redsan" />
           <img src="/img/user/duigou.png" class="duigou" style="display:none;"/>
               <span class="check_addname add_name_other">北京 小魔仙</span>
               <hr>
               <span class="add_info">北京市丰台区诺德中心7号楼605</span>
               <br>
               <span class="add_tel">13685415389</span>
               <br>
               <label class="add_change" style="display:none;">修改</label>
           </div>
       <div class="choose_address_info cursor">
           <img src="/img/user/right_top_no.png" class="righttop" />
           <img src="/img/user/red_san_no.png" class="redsan" />
           <img src="/img/user/duigou.png" class="duigou" style="display:none;"/>
               <span class="check_addname add_name_other">北京 小魔仙</span>
               <hr>
               <span class="add_info">北京市丰台区诺德中心7号楼605</span>
               <br>
               <span class="add_tel">13685415389</span>
               <br>
               <label class="add_change" style="display:none;">修改</label>
           </div>
           <div class="choose_address_info cursor">
           <img src="/img/user/right_top_no.png" class="righttop" />
           <img src="/img/user/red_san_no.png" class="redsan" />
           <img src="/img/user/duigou.png" class="duigou" style="display:none;"/>
               <span class="check_addname add_name_other">北京 小魔仙</span>
               <hr>
               <span class="add_info">北京市丰台区诺德中心7号楼605</span>
               <br>
               <span class="add_tel">13685415389</span>
               <br>
               <label class="add_change" style="display:none;">修改</label>
           </div>
       <div class="clear"></div>
       <div class="add_address_page"><a href="/changeadd.do"/>添加地址</a></div>
           <div class="order_list">
               <h3>确认订单信息</h3>
                <table border="0">
                    <tr style="background-color:#f5f5f5">
                      <th style="width:30%;">商品信息</th>
                      <th style="width:15%;">单价(元)</th>
                      <th style="width:15%;">数量</th>
                      <th style="width:15%;">优惠</th>
                      <th style="width:20%;">小计(元)</th>
                    </tr>
                    <c:forEach var="item" items="${uclist}" varStatus="status">
                    <tr class="order_list_info_tr">
                       <td class="order_list_shop">
                       <img src="/img/user/shop.png" />
                       <div class="order_list_shop_info">${item.commodityName}</div>
                       </td>
                       <td align='center' class="color_red">￥
                           <label class="commo_price">${item.price}</label>
                       </td> 
                       <td align='center'>
                           <i class="fa fa-minus-square-o fa-lg cursor" style="color:#c8c8c8;"></i>
                           <input type="text" value="${item.number}" style="width:36px;height:16px;" class="commo_num"/>
                           <i class="fa fa-plus-square-o fa-lg cursor" style="color:#c8c8c8;"></i></td>
                       <td align='center' class="color_red">￥00.00</td> 
                       <td align='center' class="color_red">￥
                           <label class="commo_each_total">${item.total}</label>
                       </td> 
                    <input type="hidden" value="${item.id}" class="hiddenCartId"/>
                    <input type="hidden" value="${item.shopId}" class="hiddenShopId"/>
                    <input type="hidden" value="${item.commodityId}" class="hiddenCommodityId"/>
                    </tr>
                    <tr style="height:10px;"></tr>
                    </c:forEach>
                    </table>
                    <div class="color_red amount_payable">
                        应付金额: ￥<label class="all_commo_price">150.00</label>
                    </div>
                    <div style="margin-left:740px;">
                        <label class="color_red cursor" onclick="history.go(-1);">返回上一页</label>
                        &nbsp;&nbsp;
                        <label class="buy_immediately" id="immediately_buy">立即购买</label>
                    </div>
          
            </div>
       </div>
        <div id="BgDiv"></div>
        <div class="prompt">
            <h2>温馨提示</h2>
            <hr>
            <p>1.确认购买后系统会向卖家发送您的购买信息，卖家将主动联系您，协商付款，付款后卖家将发货。</p>
            <p>2.系统将向您发送一条用于确认收货的验证码，您在收到货物之后将验证码发给卖家，交易完成。</p>
            <div class="buy">确定购买</div>
            <div class="cancle">关闭</div>
        </div>
        <div class="grade_line"></div>
        <script type="text/javascript" src="/js/jquery-1.8.3.min.js"></script>
        <script type="text/javascript" src="/js/pages/user/confirmorder.js"></script>
    </body>
</html>
